checkCookie1();

function getCookie_468(c_name) {
    var i, x, y, ARRcookies = document.cookie.split(";");
    for (i = 0; i < ARRcookies.length; i++) {
        x = ARRcookies[i].substr(0, ARRcookies[i].indexOf("="));
        y = ARRcookies[i].substr(ARRcookies[i].indexOf("=") + 1);
        x = x.replace(/^\s+|\s+$/g, "");
        if (x == c_name) {
            return unescape(y);
        }
    }
}

function setCookie_468(c_name, value, exdays) {
    var exdate = new Date();
    exdate.setDate(exdate.getDate() + exdays);
    var c_value = escape(value) + ((exdays == null) ? "" : "; expires=" + exdate.toUTCString());
    document.cookie = c_name + "=" + c_value;
}

function checkCookie1() {
    var username = getCookie_468("username_468");
    if (username != null && username != "") {
        //alert("Welcome again " + username);

        if (username == 1) {
            setCookie_468("username_468", 0, 365);
           var ads468_url = "http://ab8d19d0.linkbucks.com";
            var ads468_img = "http://i.imgur.com/kfTkql6.jpg";
            var ads468_txt = "";
            var ads468_txt_url = "";
//alert("Welcome again " + username);
        }
        if (username == 0) {
            setCookie_468("username_468", 1, 365);
            var ads468_url = "http://ab8d19d0.linkbucks.com";
            var ads468_img = "http://i.imgur.com/kfTkql6.jpg";
            var ads468_txt = "";
            var ads468_txt_url = "";

        }
//        if (username == 2) {
//            setCookie("468", 0, 365);
//            var ads300 = '<a href="http://www.jdoqocy.com/click-6324946-11015535" target="_blank"><img src="http://www.lduhtrp.net/image-6324946-11015535" width="300" height="250" alt="" border="0"/></a>';
//        }

    }
    else {
        username = "1";
        if (username != null && username != "") {
            setCookie_468("username_468", username, 365);
            var ads468_url = "http://ab8d19d0.linkbucks.com";
            var ads468_img = "http://i.imgur.com/kfTkql6.jpg";
            var ads468_txt = "";
            var ads468_txt_url = "";
        }
    }

    var ads_shreeji_468 = ('<style type="text/css">#Shreejiinfo468 { margin-left:auto; margin-right:auto; width:468px; height:70px;}' +
'   #Shreejiinfo468 #ShreejiAd468 { margin-left:auto;  margin-right:auto;  margin-top:0px;  margin-bottom:0px;  height:70px}</style>' +
'   <div id="Shreejiinfo468"><div id="ShreejiAd468"><div dir="ltr" style="text-align: center;" trbidi="on">' +
'   <style type="text/css">.shreeji_468 {width: 468px; height: 70px; background-color:#fff; font-family:Times New Roman;}' +
'   .shreeji_468 a {text-decoration: none; color: #5C80B1;}' +
'   .shreeji_468 a:hover {text-decoration: underline; color: Red;} .ads_shreeji_468 {font-size: x-large; font-weight: 700;}.ads_shreeji_468_1 {font-size: small; font-weight:normal;}</style>' +
'   <div class="shreeji_468" style="clear: both; text-align: center;">' +
'   <a href="'+ ads468_url +'" target="_blank">' +
'   <img src="'+ ads468_img +'" width="468px" height="60px" border="0"/>' +
'   <span class="ads_shreeji_468"></span></a>' +
'   </div> </div></div> </div>');

document.write(ads_shreeji_468);

}